import request from "@/utils/request";

export const getClassList = () => {
    return request.get("/class/list");
}

export const bingDevice = (classId: string, deviceId: string) => {
    return request.post("/class/bind", {}, {
        params: {
            "classId": classId,
            "deviceId": deviceId
        }
    });
}

export const getClassMemberList = (id: string) => {
    return request.get("/class/member/list", {
        params: {
            "id": id
        }
    })
}